<!DOCTYPE html>
<html>
<head>
    <title>用户数据分析</title>
		<#include "/header.html">

        <script src="${request.contextPath}/statics/plugins/ztree/jquery.ztree.core.js"></script>
        <script src="${request.contextPath}/statics/plugins/ztree/jquery.ztree.exhide.js"></script>
        <script src="${request.contextPath}/statics/plugins/ztree/fuzzysearch.js"></script>

</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="panel panel-default" style="border: 0px;">
            <div class="panel-body" style="padding: 0px">
                <div class="grid-btn" style="margin-bottom: 0px;">
                    <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                        <select v-model="q.date1" class="form-control" name="selQueryKey" id="selQueryKey"
                                style="padding-left:10px;padding-right:0px;">
                            <option value="">前量日期</option>
                            <option :value="item" v-for="(item,key) in dataDate" :key="key">{{ item }}
                            </option>
                        </select>
                    </div>
                    <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                        <select v-model="q.date2" class="form-control" name="selQueryKey2" id="selQueryKey2"
                                style="padding-left:10px;padding-right:0px;">
                            <option value="">后量日期</option>
                            <option :value="item" v-for="(item,key) in dataDate" :key="key">{{ item }}
                            </option>
                        </select>

                    </div>
                    <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;width:auto;">
                        <a class="btn btn-primary" @click="getDataDate"><i class="fa fa-calendar"></i>&nbsp;读取采集日期</a>
                    </div>
                    <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                        <select v-model="q.ftype" class="form-control" name="selQueryAmount" id="selQueryAmount"
                                style="padding-left:10px;padding-right:0px;">
                            <option value="C00">用量查询</option>
                            <option value="C_0">用量小于0</option>
                            <option value="C01">用量等于0</option>
                            <option value="C02">用量(0~30)</option>
                            <option value="C03">用量[30~100]</option>
                            <option value="C04">用量大于100</option>
                            <option value="C05">本次大于2000</option>
                            </option>
                        </select>
                    </div>
                    <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                        <input type="text" class="form-control" v-model="q.cid" placeholder="表卡编号"/>
                    </div>

                    <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                        <input type="text" class="form-control" v-model="q.deviceid" placeholder="设备号"/>
                    </div>

                    <a class="btn btn-primary" @click="query">
                        <i class="fa fa-search"></i>&nbsp;查询
                    </a>
                    <a class="btn btn-primary" @click="initData">
                        <i class="fa fa-refresh"></i>&nbsp;刷新
                    </a>
                    <a class="btn btn-primary" @click="outxls">
                        <i class="fa fa-download"></i>&nbsp;导出
                    </a>
                    <a class="btn btn-primary" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
                        更多查询条件
                    </a>
                </div>
        </div>
        <div id="collapseOne" class="panel-collapse collapse">
            <div class="panel-body" style="padding: 5px 0px 0px 0px">

                <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                    <select v-model="q.fstatus" class="form-control" name="selQueryStatus" id="selQueryStatus"
                            style="padding-left:10px;padding-right:0px;">
                        <option value="0">全部设备</option>
                        <option value="1">故障设备</option>
                        </option>
                    </select>
                </div>
                <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                    <input type="text" class="form-control" v-model="q.cname" placeholder="客户名称"/>
                </div>
                <div class="col-sm-2" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                    <input type="text" class="form-control" v-model="q.clientaddr" placeholder="客户地址"/>
                </div>
                <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                    <input type="text" class="form-control" v-model="q.plateno" placeholder="表盘号"/>
                </div>
                <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                    <input type="text" class="form-control" v-model="q.stampno" placeholder="表封号"/>
                </div>
            </div>
        </div>
    </div>

     <table id="jqGrid"></table>
     <div id="jqGridPager"></div>


    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">客户名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.clientName"
                           placeholder="客户名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">客户地址</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.clientAddress"
                           placeholder="客户地址"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">设备号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.deviceId"
                           placeholder="设备号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">设备地址</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.deviceAddress"
                           placeholder="设备地址"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">采集方式</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.deviceTypeName"
                           placeholder="采集方式"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">用量</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.useData"
                           placeholder="用量"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">上次数据</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.beforeData"
                           placeholder="上次数据"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">上次时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.beforeDate"
                           placeholder="上次时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">上次状态</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.beforeStatus"
                           placeholder="上次状态"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">本次数据</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.afterData"
                           placeholder="本次数据"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">本次时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.afterDate"
                           placeholder="本次时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">本次状态</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.afterStatus"
                           placeholder="本次状态"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">小区名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.proName"
                           placeholder="小区名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <!-- <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..."
                       @click="saveOrUpdate" value="确定"/> -->
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>


    <div id="infoLayer" style="display: none;padding:10px;">
        <div class="panel panel-default"> <!-- Only required for left/right tabs -->
            <div class="panel-default">
                    <form class="form-inline" role="form">
                        <div class="form-group">
                            <div class="col-sm-2 control-label">设 备 号</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.deviceId" placeholder="设备号" readonly/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">表卡编号</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.clientId" placeholder="表卡编号" readonly/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">表 盘 号</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.plateno" placeholder="表盘号" readonly/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">表 封 号</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.stampno" placeholder="表封号" readonly/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">客户姓名</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.clientName" placeholder="客户姓名" readonly/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">客户地址</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.clientAddress" placeholder="客户地址" readonly/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">设备地址</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.deviceAddress" placeholder="设备地址" readonly/>
                            </div>
                        </div>
                        <!--
                        <div class="form-group">
                            <div class="col-sm-2 control-label">采集方式</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.deviceTypeName" placeholder="采集方式" readonly/>
                            </div>
                        </div>
                        -->
                        <div class="form-group">
                            <div class="col-sm-2 control-label">期间用量</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.useData" placeholder="用量" readonly/>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-2 control-label">之前日期</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.beforeDate" placeholder="之前日期" readonly/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">本次日期</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.afterDate" placeholder="本次日期" readonly/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">之前数据</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.beforeData" placeholder="之前数据" readonly/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">本次数据</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.afterData" placeholder="本次数据" readonly/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">之前状态</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.beforeStatus" placeholder="之前状态" readonly/>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-2 control-label">本次状态</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="proDataAnalyse.afterStatus" placeholder="本次状态" readonly/>
                            </div>
                        </div>

                    </form>
            </div>
            <div class="panel-body">
                <table id="jqGridData"></table>
                <div id="jqGridPagerData"></div>
            </div>
        </div>
    </div>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/waterself/prodataanalysesubself.js?_${.now?long}"></script>
</body>
</html>